import Vue from 'vue'
import {
  Toast,
  Button,
  Tabbar,
  TabbarItem,
  Swipe,
  SwipeItem,
  Image as VanImage,
  Search,
  Icon,
  Grid,
  GridItem,
  NavBar,
  IndexBar,
  IndexAnchor,
  Cell
} from 'vant'

Vue.use(Button)

Vue.use(Tabbar)
Vue.use(TabbarItem)

Vue.use(Swipe)
Vue.use(SwipeItem)

Vue.use(VanImage)

Vue.use(Search)

Vue.use(Icon)

Vue.use(Grid)
Vue.use(GridItem)

Vue.use(NavBar)

Vue.use(IndexBar)
Vue.use(IndexAnchor)
Vue.use(Cell)
Vue.prototype.$toast = Toast
